package com.weixinli.beans;

import java.io.Serializable;

public class SubjectResult implements Serializable{
	private int rid;//结果编号
	private int tid;//关联测试编号
	private String content;//结果内容
	private String condition;//条件
	private static final long serialVersionUID = 1L;
	@Override
	public String toString() {
		return "SubjectResult [rid=" + rid + ", tid=" + tid + ", content="
				+ content + ", condition=" + condition + "]";
	}

	public int getRid() {
		return rid;
	}
	
	public int getRids() {
		return rid;
	}

	public void setRid(int rid) {
		this.rid = rid;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((condition == null) ? 0 : condition.hashCode());
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + rid;
		result = prime * result + tid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SubjectResult other = (SubjectResult) obj;
		if (condition == null) {
			if (other.condition != null)
				return false;
		} else if (!condition.equals(other.condition))
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (rid != other.rid)
			return false;
		if (tid != other.tid)
			return false;
		return true;
	}

	public SubjectResult(int rid, int tid, String content, String condition) {
		super();
		this.rid = rid;
		this.tid = tid;
		this.content = content;
		this.condition = condition;
	}

	public SubjectResult() {
		super();
	}
}
